import { CoolController, BaseController } from '@cool-midway/core';
import { Body, Inject, Post, Get, Query } from '@midwayjs/core';
import { OrderInfoEntity } from '../../entity/info';
import { OrderInfoService } from '../../service/info';

/**
 * order模块-订单信息
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: OrderInfoEntity,
  service: OrderInfoService,
  pageQueryOp: {
    keyWordLikeFields: ['orderNumber', 'user', 'product'],
    fieldEq: ['status', 'paymentMethod'],
  }
})
export class AdminOrderInfoController extends BaseController {
  @Inject()
  orderInfoService: OrderInfoService;
}
